﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_DevWork_Details.aspx.cs" Inherits="Admin_DevWork_Details" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script type="text/javascript" src="./js/cookie.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    
      <form id="form1" runat="server" class="layui-form">
        <div class="x-body">
            <%-- <form class="layui-form">--%>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    登录账户名：
                </label>
                <div class="auto-style2">
                    <%--<asp:TextBox ID="FName" runat="server" class="layui-input"></asp:TextBox>--%>
                    <asp:Label ID="Labelloginname" runat="server"></asp:Label>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    登录密码：
                </label>
                <div class="layui-input-inline">
                    <asp:TextBox ID="FPass" runat="server" class="layui-input"></asp:TextBox>
                </div>
                <%-- <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click"><i class="iconfont">&#xe6e6;</i></asp:LinkButton>--%>
            </div>
            <%--<div class="layui-form-item">
                         <label for="username" class="layui-form-label">
                             性别：
                         </label>
                          <div class="layui-input-inline">
                        <asp:DropDownList ID="XB" runat="server">
                            <asp:ListItem Value="男">男</asp:ListItem>
                            <asp:ListItem Value="女">女</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                     </div>--%>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    用户身份：
                </label>
                <div class="auto-style1">
                    <asp:Label ID="Label2" runat="server">管理员</asp:Label>
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    姓名：
                </label>
                <div class="layui-input-inline">
                    <asp:TextBox ID="FName" runat="server" class="layui-input"></asp:TextBox>
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">性别：</label>
              <%--  <div class="auto-style3">                   
                    <asp:RadioButtonList ID="XB" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem>男</asp:ListItem>
                        <asp:ListItem>女</asp:ListItem>
                    </asp:RadioButtonList>
                </div>--%>
                  <div class="layui-input-inline">
                        <asp:DropDownList ID="FSex" runat="server">
                            <asp:ListItem Value="男">男</asp:ListItem>
                            <asp:ListItem Value="女">女</asp:ListItem>                         
                        </asp:DropDownList>
                    </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    联系电话：
                </label>
                <div class="layui-input-inline">
                    <asp:TextBox ID="FPhoneNum" runat="server" class="layui-input"></asp:TextBox>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    电子邮箱：
                </label>
                <div class="layui-input-inline">
                    <asp:TextBox ID="FMail" runat="server" class="layui-input"></asp:TextBox>
                </div>
            </div>
            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <asp:Button ID="Button1" runat="server" Text="保存" class="layui-btn" OnClick="Button1_Click1" />
            </div>
        </div>

    </form>
      <%--  <div class="layui-container" style="margin-top:10px">
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringProManage %>" DeleteCommand="update users set [flag]=0 where [uername]=@uername" SelectCommand="SELECT [uername], [password], [name], [sex], [tel], [email] FROM [Users] WHERE ([uername] = @uername)and ([flag]=1)" UpdateCommand="update users set [password]=@password,[name]=@name,[sex]=@sex,[tel]=@tel,[email]=@email where ([uername]=@uername) and ([flag]=1)">
                <DeleteParameters>
                    <asp:Parameter Name="uername" />
                </DeleteParameters>
                <SelectParameters>
                    <asp:QueryStringParameter Name="uername" QueryStringField="id" Type="String" />
                </SelectParameters>
                <UpdateParameters>
                    <asp:Parameter Name="password" />
                    <asp:Parameter Name="name" />
                    <asp:Parameter Name="sex" />
                    <asp:Parameter Name="tel" />
                    <asp:Parameter Name="email" />
                    <asp:Parameter Name="uername" />
                </UpdateParameters>
            </asp:SqlDataSource>
            <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateEditButton="True" AutoGenerateRows="False" DataKeyNames="uername" Height="50px" Width="309px" BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataSourceID="SqlDataSource1" ForeColor="Black" GridLines="Vertical">
                <AlternatingRowStyle BackColor="#CCCCCC" />
                <EditRowStyle BackColor="#d4cfcb" Font-Bold="True" ForeColor="White" />
                <Fields>
                    <asp:BoundField DataField="uername" HeaderText="登录用户名" ReadOnly="True" SortExpression="uername" />
                    <asp:BoundField DataField="password" HeaderText="登录密码" SortExpression="password" />
                    <asp:BoundField DataField="name" HeaderText="姓名" SortExpression="name" />
                    <asp:BoundField DataField="sex" HeaderText="性别" SortExpression="sex" />
                    <asp:BoundField DataField="tel" HeaderText="电话" SortExpression="tel" />
                    <asp:BoundField DataField="email" HeaderText="邮箱" SortExpression="email" />
                </Fields>
                <FooterStyle BackColor="#CCCCCC" />
                <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <RowStyle Height="35px" HorizontalAlign="Center" />
            </asp:DetailsView>
        </div>--%>
   
</body>
</html>
